<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%-- <%@ taglib prefix="sd" uri="/struts-dojo-tags" %> --%>

<div id="site_content">
      <div id="search_content1"> 
	  <div class="layout">
	  <div class="layout1">           
	<br/>
	<s:form action="searchBaoBi" method="post">
	<table width="531" height="171" border="0" class="tableMargin">
	  <tr>
		<td width="104" class="formatLeft"></td>
		<td width="417">
		  <s:select key="baobi.label.tenbaobi" cssClass="text_field_bg_changed" list="listBBSelected" listValue="tenbaobi"  name="tenbaobi" headerValue="----------Vui lòng chọn---------" headerKey="">
		  </s:select>
		</td>
	  </tr> 
	  <tr>
		<td class="formatLeft"></td>
		<td>
		  <s:select key="baobi.label.mabaobi" cssClass="text_field_bg_changed" list="listBBSelected" listValue="mabaobi" name="mabaobi" headerValue="----------Vui lòng chọn---------" headerKey="">
		  </s:select>
		</td>
	  </tr>	  
	  <tr>
		<td class="formatLeft"></td>
		<td>
		   <s:select key="baobi.label.tenncc" cssClass="text_field_bg_changed" list="listNccSelected" listKey="mancc" listValue="tenncc" name="mancc" headerValue="----------Vui lòng chọn---------" headerKey="">
		  </s:select>
		</td>
	  </tr>
	  <tr>
		<td height="52" class="formatLeft"><input class="submit_changed" title="Tìm kiếm bao bì" type="submit" name="contact_submitted" value="Tìm BB" /></td>
		<td><input class="submit_changed" type="button" title="Thêm mới bao bì" name="contact_submitted" value="Thêm BB" onclick='child_open("showPopupToAdd","540","450");' />
		<input type="file" id="file1" style="display:none" accept="xls,doc,ppt" >
		<input class="submit_changed" type="button" title="Import bao bì từ file excell" id="importBB" value="Import BB" onclick="javascript:openFileOption('file1');return;"/>
		<input class="submit_changed" type="button" title="In thông tin bao bì"  name="contact_submitted" value="In BB" onclick="return alert('Đang cập nhật....')" /></td>	
	  </tr>
    </table>
    </s:form> 
	</div>
	</div>
  </div>
    <div class="tableLayout">
	 <div class="result">Kết quả tìm kiếm bao bì cho: <b><em>"Bao nhôm MD BIOVITAMIN - 500g"</em></b></div>
		<table class="tbl1 ">
		  <thead>
			<tr>
			  <th width="47" title="Số thứ tự">Stt</th>
			  <th width="68" title="Mã bao bì">Mã BB</th>
			  <th width="189" title="Tên bao bì">Tên BB</th>
			  <th width="141" title="Quy cách bao bì">Quy Cách BB</th>
			  <th width="87" title="Đơn giá bao bì">Đ.Giá BB</th>
			  <th width="77" title="Đơn giá bao bì cũ">Đ.Giá BB Cũ</th>
			  <th width="94" title="Đơn gia bao bì USD">Đ.Giá BB (USD)</th>
			  <th width="132">Ghi Chú</th>
			  <th width="121" title="Nhà cung cấp bao bì">Nhà CCấp BB</th>
			  <th width="100">Chức Năng</th>
			</tr>
		  </thead>	  
		  <tbody>
		  <s:iterator value="listBBSearch" status="itStatus" var="objBB">	  
			<tr title="Nhấp đôi để xem chi tiết" ondblclick='child_open("nhapbaobi.jsp","620","360");'>
			  <td class="formatCenter" ><s:property value="#itStatus.count"  /></td>
			  <td class="formatLeft" style="padding-left:2px;"><s:property value="#objBB.mabaobi"  /></td>
			  <td align="center"><s:property value="#objBB.tenbaobi" /></td>
			  <td style="padding-left:2px;"><s:property value="#objBB.quycach_bb" /></td>
			  <td class="formatRight"><s:property value="#objBB.dongia" />&nbsp;</td>
			  <td ><s:property value="#objBB.dongiacu" />&nbsp;</td>
			  <td class="formatRight"><s:property value="#objBB.dongia_usd" />&nbsp;</td>
			  <td ><s:property value="#objBB.ghichu" /></td>
			  <td style="padding-left:2px;"><s:property value="#objBB.tenncc" /></td>
			   <td class="chucnang" align="center">
			   		<s:url id="editURL" action="showPopupToUpdate">
					<s:param name="baobiid" value="%{#objBB.baobiid}"></s:param>
					</s:url>
					<s:a onclick='child_open("%{editURL}","620","360");' title="Sửa thông tin bao bì" cssStyle="color:#B22222">Sửa</s:a>
					<s:a href="%{editURL}" title="Sửa thông tin bao bì" cssStyle="color:#B22222">test</s:a>
			   |<s:a onclick="return confirm('Bạn chắc chắn muốn xóa thông tin này không?');" title="Xóa thông tin bao bì" cssStyle="color:#B22222">Xóa</s:a>
			   </td>
			</tr>
			</s:iterator>
		  </tbody>	  
		</table> 
		        		
		<div align="right"><a href="#" style="color:#B22222;">1</a>&nbsp;&nbsp;<a href="#" style="color:#B22222;">2</a>&nbsp;&nbsp;<a href="#" style="color:#B22222;">3</a>&nbsp;&nbsp;<a href="#" style="color:#B22222;">4</a>&nbsp;&nbsp;<a href="#"style="color:#B22222;">5</a></div>
		<br />
    </div>
      <div id="site_content_bottom"></div>      
</div>
